﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using M.Dao.Client;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            DBRepository dbr = new DBRepository("http://127.0.0.1:8011/", "bhggjuser","123456");

            var qr = dbr.Query<UserInfo>("select * from sys_datauser", 1, 10);

            string json = qr.ToString();

            Console.WriteLine(json);
            Console.Read();

        }
    }

    class UserInfo
    {
        public string UNITID { get; set; }
        public string USERID { get; set; }
        public string UINPUTNAME { get; set; }
        public string USHOWNAME { get; set; }

        public string PASSWORD { get; set; }
        public string UKIND { get; set; }
        public decimal SORTID { get; set; }
        public string MOBILE { get; set; }
        public string EMAIL { get; set; }
        public decimal LOGONCOUNT { get; set; }
        public string TOKEN { get; set; }
        public string TENANTCODE { get; set; }

        public string WEIXIN { get; set; }

    }
}
